package com.dataeco.api.entity;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "users_roles")
public class UsersRoles implements Serializable{
    private static final long serialVersionUID=-6014041684645876748L;
    @EmbeddedId
    private UserRoleKey userRoleKey=new UserRoleKey();

    public UserRoleKey getUserRoleKey() {
        return userRoleKey;
    }

    public void setUserRoleKey(UserRoleKey userRoleKey) {
        this.userRoleKey = userRoleKey;
    }
}
